﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using PloobsEngine.Utils;

namespace PloobsEngine.SceneControl
{
    public class Element : IDummy
    {
        public Element(Vector3 Posicao,String nome)
        {
            this.Posicao = Posicao;
            this.name= nome;
        }

        private Vector3 posicao;

        public Vector3 Posicao
        {
            get { return posicao; }
            set { posicao = value; }
        }
        private String name;

        #region IDummy Members

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                this.name = value;
            }
        }

        public void Serialize(System.Xml.XmlTextWriter textWriter)
        {
            SerializerHelper.SerializeVector3(posicao, "Posicao", textWriter);
        }

        public void DeSerialize(System.Xml.XmlNode node, EngineStuff engine, IWorld world)
        {
            SerializerHelper.DeserializeVector3("Posicao", node);
        }

        #endregion
    }
}
